-- GENERATED SPELL FOR [Scarlet Knight] --


function spell0_1833(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1833', 5280, 1)
end

function spell1_1833(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(8242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1833', 2326, 1)
end

function Sorts_1833(pUnit, Event)
local choix_sorts_1833 = math.random(0, 1)
if choix_sorts_1833 == 0 then
pUnit:RegisterEvent('spell0_1833', 1, 1)
end
if choix_sorts_1833 == 1 then
pUnit:RegisterEvent('spell1_1833', 1, 1)
end
end

function mob1833_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1833', math.random(1500, 3000), 1)
end

function mob1833_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1833_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1833_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1833, 1, 'mob1833_Action')
RegisterUnitEvent(1833, 2, 'mob1833_Leave')
RegisterUnitEvent(1833, 3, 'mob1833_Kill')
RegisterUnitEvent(1833, 4, 'mob1833_Die')
